/**
 * Each line in the input file might have a transaction associated with the operation 
 * This class creates the transaction object to hold the transaction of an operation.
 * A transaction has a transaction ID, its status - (active, committed, aborted, blocked) and a list of
 * item object that a transaction has modified
 */
package edu.cse5311.entity;

import java.util.List;

/**
 * @author Karthik MG/Shwetha Narayan
 *
 */
public class Transaction {
	int transactionId;
	List<Item> modifiedItems;
	String status;
	/**
	 * @return the transactionId
	 */
	public int getTransactionId() {
		return transactionId;
	}
	/**
	 * @param transactionId the transactionId to set
	 */
	public void setTransactionId(int transactionId) {
		this.transactionId = transactionId;
	}
	/**
	 * @return the modifiedItems
	 */
	public List<Item> getModifiedItems() {
		return modifiedItems;
	}
	/**
	 * @param modifiedItems the modifiedItems to set
	 */
	public void setModifiedItems(List<Item> modifiedItems) {
		this.modifiedItems = modifiedItems;
	}
	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}
	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}
}
